
<!DOCTYPE html>
<html>

	<head lang="en">
		<meta charset="UTF-8">
		<title>SignIn Page | Amaze UI Example</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta name="format-detection" content="telephone=no">
		<meta name="renderer" content="webkit">
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<link rel="alternate icon" type="image/png" href="{{static_url('i/favicon.png')}}">
		<link rel="stylesheet" href="{{static_url('css/amazeui.min.css')}}" />
		<script language="JavaScript" src="{{static_url('js/jquery.min.js')}}"></script>
		<script language="javascript" src="{{static_url('js/amazeui.min.js')}}"></script>
		<style>
			.header {
				text-align: center;
			}
			.header h1 {
				font-size: 200%;
				color: #333;
				margin-top: 30px;
			}
			.header p {
				font-size: 14px;
			}
		</style>
	</head>

	<body>
		<div class="header">
			<div class="am-g">
				<h1>TianMao</h1>

				<p>Phalcon Content Management Framework
					<br/>可能是中国最XXOO的Phalcon CMF</p>
			</div>
			<hr/>
		</div>
		<div class="am-g">
			<div class="am-u-lg-6 am-u-md-8 am-u-sm-centered">
				<h3>Sign In</h3>
				<hr>
				<div class="am-btn-group">
					<a href="#" class="am-btn am-btn-secondary am-btn-sm">
						<i class="am-icon-github am-icon-sm"></i> Github
					</a>
					<a href="#" class="am-btn am-btn-success am-btn-sm">
						<i class="am-icon-google-plus-square am-icon-sm"></i> Google+
					</a>
					<a href="#" class="am-btn am-btn-primary am-btn-sm">
						<i class="am-icon-stack-overflow am-icon-sm"></i> stackOverflow
					</a>
				</div>
				<br>
				<?php
		            $messages = $this->flashSession->getMessages();
		            if ( count($messages) > 0) {
		                    foreach ($messages as $messageType => $messageArray) {
		                        foreach ($messageArray as $message) {
		                            echo "<div class=\"am-alert am-alert-{$messageType}\" data-am-alert ><button type=\"button\" class=\"am-close\">&times;</button>{$message}</div>";
		                        }
		                    }
		            }
		        ?>
				<br> 
				<form class="am-form" method="post" action="{{url('session/signin')}}">
					<label for="email">邮箱</label>
					{{ form.render('email') }}
					<br>
					<label for="password">密码</label>
					{{ form.render('password') }}
					<br>
					<label for="remember-me">
						保持登录 {{ form.render('remember-me') }}
					</label>
					<br/>

					<div class="am-cf">
						{{ form.render('submit') }}
						<a href="{{url('session/forgotPassword')}}" class="am-btn am-btn-default am-btn-sm am-fr">忘记密码 ^_^? </a>
					</div>
				</form>
				<hr>
				<p>© 2014 AllMobilize, Inc. Licensed under MIT license.</p>
			</div>
		</div>
		<script language="JavaScript">
			$(function() {
				$('div.am-alert').delay(2500).slideUp(300);
			});
		</script>
	</body>
</html>
